package com.jerei.plugin.service.impl;

import com.jerei.plugin.dao.IWcmCommonWebsiteDao;
import com.jerei.plugin.entity.WcmCommonWebsite;
import com.jerei.plugin.service.IWcmCommonWebsiteService;
import com.jerei.utils.condition.ConditionEntity;
import com.jerei.utils.spring.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by sunfeihu on 2016/10/21.
 */
@Service
public class WcmCommonWebsiteServiceImpl implements IWcmCommonWebsiteService {

    @Autowired
    private IWcmCommonWebsiteDao iWcmCommonWebsiteDao;

    @Override
    public WcmCommonWebsite save(WcmCommonWebsite entity) {
        return iWcmCommonWebsiteDao.save(entity);
    }

    @Override
    public int delete(Long id) {
        return iWcmCommonWebsiteDao.delete(id);
    }

    @Override
    public int update(WcmCommonWebsite entity) {
        return iWcmCommonWebsiteDao.update(entity);
    }

    @Override
    public WcmCommonWebsite find(Long id) {
        return iWcmCommonWebsiteDao.find(id);
    }


    @Override
    public void save(List<WcmCommonWebsite> list) {
        iWcmCommonWebsiteDao.save(list);
    }

    @Override
    public void delete(List<Long> ids) {
        iWcmCommonWebsiteDao.delete(ids);
    }

    @Override
    public void update(List<WcmCommonWebsite> list) {
        iWcmCommonWebsiteDao.update(list);
    }

    @Override
    public PageBean<WcmCommonWebsite> page(int nowPage, int pageSize, ConditionEntity conditionEntity) {
        return iWcmCommonWebsiteDao.page(nowPage, pageSize, conditionEntity);
    }
}
